package org.jground.rx.def.apps.ipm;
import org.jground.rx.*;
import org.jground.rx.gen.*;
import org.jground.util.*;
import java.util.List;
import org.jground.rx.def.apps.accounting.*;
import org.jground.rx.def.apps.commons.*;
import org.jground.rx.def.apps.knowledge.*;
import org.jground.rx.def.*;
import org.jground.rx.def.apps.crm.*;
import org.jground.rx.def.apps.cip.*;
import org.jground.rx.def.apps.core.*;
import org.jground.rx.def.apps.legal.*;
@SuppressWarnings("unused")
public class TrademarkClass extends GenRoot {

    public static final String moid = "org.jground.rx.def.apps.ipm.TrademarkClass";

    private static final String tclass ="tclass";
    private static final String tcomment ="tcomment";
    private static final String $CREATOR ="$CREATOR";

    public static final class AttName {
        public static final String tclass ="tclass";
        public static final String tcomment ="tcomment";
        public static final String $CREATOR ="$CREATOR";
    }

    public static TrademarkClass createNew() { return new TrademarkClass(RXObjectService.getInstance().create(moid)); }

    public static TrademarkClass getById(String oid) { 
        IRXObject mod = RXObjectService.getInstance().getById(oid);
        if(mod == null) { return null; }
        return new TrademarkClass(mod);
    }

    public static TrademarkClass[] getByIds(String... oids) { 
        List<IRXObject> mods = RXObjectService.getInstance().getByIds(moid, oids);
        TrademarkClass[] res = new TrademarkClass[mods.size()];
        int i = 0;
        for(IRXObject mod : mods) {
            res[i] = new TrademarkClass(mod);
            i++;
        }
        return res;
    }

    public static SearchCriteria newSearchCriteria() {
        return  SearchCriteria.create(moid);
    }

    public static TrademarkClass[] search(SearchCriteria sc) {
        return  wrap(GenRoot._search(sc));
    }

    public static TrademarkClass[] wrap(List<? extends IRXObjectSynopsis> mods) { 
        TrademarkClass[] res = new TrademarkClass[mods.size()];
        int i = 0;
        for(IRXObjectSynopsis mod : mods) {
            res[i] = new TrademarkClass(mod);
            i++;
        }
        return res;
    }

    public static TrademarkClass wrap(IRXObjectSynopsis mod) { 
        return new TrademarkClass(mod);
    }

    private TrademarkClass(IRXObjectSynopsis rxObject) {this.rxObject = (IRXObject) rxObject;}

    public static String getTclassLabel() {
        return RXSystem.getInstance().getRxService().getRXAttribute(moid, tclass).getLabel();
    }

    public static String getTclassDescription() {
        return RXSystem.getInstance().getRxService().getRXAttribute(moid, tclass).getDescription();
    }

    public void setTclass(String string) {
        rxObject.set(tclass, _to_String(string));
    }

    public String getTclass() {
        return _to_String(rxObject.getCurrentValue(tclass));
    }

    public static String getTcommentLabel() {
        return RXSystem.getInstance().getRxService().getRXAttribute(moid, tcomment).getLabel();
    }

    public static String getTcommentDescription() {
        return RXSystem.getInstance().getRxService().getRXAttribute(moid, tcomment).getDescription();
    }

    public void setTcomment(String text) {
        rxObject.set(tcomment, _to_String(text));
    }

    public String getTcomment() {
        return _to_String(rxObject.getCurrentValue(tcomment));
    }

    public static String get$CREATORLabel() {
        return RXSystem.getInstance().getRxService().getRXAttribute(moid, $CREATOR).getLabel();
    }

    public static String get$CREATORDescription() {
        return RXSystem.getInstance().getRxService().getRXAttribute(moid, $CREATOR).getDescription();
    }

    public void set$CREATOR(String string) {
        rxObject.set($CREATOR, _to_String(string));
    }

    public String get$CREATOR() {
        return _to_String(rxObject.getCurrentValue($CREATOR));
    }

}
